<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use App\BaseModel as Eloquent;

/**
 * Class MasterUser
 * 
 * @property int $id
 * @property string $username
 * @property string $password
 * @property string $salt
 * @property string $mobile
 * @property string $category
 * @property int $status
 * @property int $role
 * @property string $truename
 * @property string $part
 * @property string $job
 * @property string $loginip
 * @property \Carbon\Carbon $logintime
 * @property \Carbon\Carbon $expire_time
 * @property string $white_list
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 *
 * @package App\Models
 */
class MasterUser extends Eloquent
{
	protected $table = 'master_user';

	protected $casts = [
		'status' => 'int',
		'role' => 'int'
	];

	protected $dates = [
		'logintime',
		'expire_time'
	];

	protected $hidden = [
		'password',
		'salt'
	];

	protected $fillable = [
		'username',
		'password',
		'salt',
		'mobile',
		'category',
		'status',
		'role',
		'truename',
		'part',
		'job',
		'loginip',
		'logintime',
		'expire_time',
		'white_list'
	];
}
